package com.hyb.service;

import com.hyb.Vo.SaleStaffVo;
import com.hyb.entity.Sale;
import com.baomidou.mybatisplus.extension.service.IService;
import com.hyb.page.PageReq;

/**
 * <p>
 *  销售机会Service接口
 * </p>
 *
 * @author hyb
 * @since 2021-12-29
 */
public interface SaleService extends IService<Sale> {

    void createSale(Sale sale);

    PageReq getAllSales(Integer limit, Integer current,Integer staffId,String saleState);

    PageReq getSalesByAccountManagers(Integer limit, Integer current,Integer staffId,String saleState);

    SaleStaffVo getSaleBySaleId(Integer saleId);

    void assignAccountManager(Sale sale);

    void updateSale(Sale sale);

    void deleteSale(Integer saleId);

    PageReq getAllAssignedSales(Integer limit,Integer current);

    PageReq getAllAssignedSalesByAccountManager(Integer limit,Integer current,Integer staffId);

    void completeDevelopment(Integer saleId);

    void terminationOfDevelopment(Integer saleId);

}
